/*
 * @Author: zxh
 * @Date: 2024-07-11 19:12:39
 * @LastEditors: zxh
 * @LastEditTime: 2024-07-11 19:14:31
 * @Description: 请填写简介
 */
import type { ProfileDetail, ProfileParams } from '@/types/members'
import { http } from '@/utils/http'

/**
 * 获取个人信息
 */
export const getMemberProfileAPI = () => {
  return http<ProfileDetail>({
    method: 'GET',
    url: '/member/profile',
  })
}

/**
 * 修改个人信息
 * @param data 请求体参数
 */
export const putMemberProfileAPI = (data: ProfileParams) => {
  return http<ProfileDetail>({
    method: 'PUT',
    url: '/member/profile',
    data,
  })
}
